﻿  <script language="javascript" type="text/javascript">  
      function fSearchType(obj)
    {
        if(obj=="2")
        {
            form1.SearchType.value = "2";
        }
        else
        {
            form1.SearchType.value = "1";
        }
        //alert(form1.SearchType.value);
    }

    function TradeSearch()
    {
        var iWidth=screen.availWidth-200;
        var iHeight=screen.availHeight-200;
        var stype ="1";
        try
        {
            stype = form1.SearchType.value;
        }
        catch(err)
        {
            stype ="1";
        }
        if(stype == "")
        {
            stype = "1";
        }
//        if(form1.QiuGou.checked == true)
//        {
//            stype = "2";
//        }
        var sSearchName = form1.SearchName.value;
        if(sSearchName == "")
        {
            alert("请输入要查询得条件");
            document.form1.SearchName.focus();
            return false;
        }
        else
        {
            //var shref = "TradeManage/TradeSearch.aspx?type="+stype +"&SearchName="+sSearchName;           
            //window.open ('../TradeManage/TradeSearch.aspx?tpe='+stype+'&SearchName='+sSearchName, 'newwindow', 'height='+iHeight+', width='+iWidth+', top=0, left=100, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes,location=yes, status=yes')
//            var sTemp = "'../TradeManage/TradeSearch.aspx?SearchType="+stype+"&SearchName="+sSearchName+"'";
//            window.location.href=sTemp
            eval("location.href = \"../TradeManage/TradeSearch.aspx?SearchType="+stype+"&SearchName="+sSearchName+"\";");
        }
    }
     
  </script>
<table border="0" align="center" cellpadding="0" cellspacing="0" style ="width :1000;background-color :#dddddd">
 <tr>
   <td  style ="width :100%; background-color :#ffffff" >
     <!--LOGO及菜单-->
     <table style ="width :100%; height :85; background-image :url('../images/Logo_Bg.gif'); " cellpadding="0" cellspacing="0"  border="0">
      <tr>
       <td style ="width :172;"  onclick="location.href='../default.aspx'" ><img src ="../images/weblogo.gif" width ="169" height ="85" alt ="" border="0" /></td>
       <td align ="right">
         <table style ="height :85; width :100%;"  cellpadding="0" cellspacing="0">
          <tr>
           <td valign ="middle" colspan ="11" align ="right" >
               <a href="../English/index.aspx">English</a> |
               <a target="_blank" href="msnim:chat?contact=malitao@hotmail.com" class="msn">MSN</a> |
               <a href="../DtkeySysManage/logon.aspx" target ="_blank"  >登录</a>|
               <a href="../Email/EmailList.aspx?type=1&TypeName=未读邮件">我的邮件</a> |
               <a href="../TradeManage/RegUser.aspx" target ="_blank"  >免费注册</a>|
               <a href="../help/helpindex.aspx?HelpCateGory=0&Helptype=0&TypeName=全部帮助列表" >帮助中心</a>|
               <!--<a href="../Email/EmailList.aspx" >我的邮件</a>|-->
               <a onclick="window.external.addFavorite('http://www.dtkey.com','Dtkey网站')" href="#">加入收藏</a>|
               <a onclick="this.style.behavior='url(#default#homepage)'; this.setHomePage('Dtkey网站');return false;" href="http://www.dtkey.com">设为首页</a>&nbsp;&nbsp;</td>
          </tr>
          <tr>
           <td>&nbsp;</td>
           <td style ="width :74px;" valign="bottom">
             <table style =" width :71px; height :21px; border :0;" cellpadding="0" cellspacing="0" >
              <tr>
                <td valign="bottom" align ="center"  ><img id="img1" runat ="server" onclick ="javascript:this.src='../images/gongying_2.gif';img2.src='../images/qiuguo_1.gif';form1.SearchType.value = '1'"  src="../images/gongying_2.gif" border="0" alt ="" /></td>
              </tr>
            </table>
           </td>
           <td style ="width :74px;" valign="bottom">
             <table style =" width :71px; height :21px; border :0;" cellpadding="0" cellspacing="0" >
              <tr>
                <td valign="bottom" align ="center"  ><img id="img2" runat ="server"  onclick="javascript:this.src='../images/qiuguo_2.gif';img1.src='../images/gongying_1.gif';form1.SearchType.value = '2'"  src="../images/qiuguo_1.gif" border="0" alt ="" /></td>
              </tr>
            </table>
           </td>
           <td style ="width :200;"></td> 
           <td style ="width :74px;" valign="bottom">
             <table style ="background-image :url('../images/dtkey_Btn_Bg_4.gif'); width :71px; height :21px; border :0;" cellpadding="0" cellspacing="0" >
              <tr>
                <td valign="bottom" align ="center"><a href="../default.aspx" >首页</a></td>
              </tr>
            </table>
           </td>
           <td style ="width :74px;" valign="bottom">
             <table style ="background-image :url('../images/dtkey_Btn_Bg_4.gif'); width :71px; height :21px; border :0;" cellpadding="0" cellspacing="0" >
              <tr>
                <td valign="bottom" align ="center"><a href="../news/NewsIndex.aspx?type=0&TypeName=全部商务资讯列表" >商务资讯</a></td>
              </tr>
            </table>
           </td>
           <td style ="width :74px;" valign="bottom">
             <table style ="background-image :url('../images/dtkey_Btn_Bg_4.gif'); width :71px; height :21px; border :0;" cellpadding="0" cellspacing="0" >
              <tr>
                <td valign="bottom" align ="center"><a href="../Product/ProductsList.aspx?type=0" >行业分类</a></td>
              </tr>
            </table>
           </td>
            <td style ="width :74px;" valign="bottom">
             <table style ="background-image :url('../images/dtkey_Btn_Bg_4.gif'); width :71px; height :21px; border :0;" cellpadding="0" cellspacing="0" >
              <tr>
                <td valign="bottom" align ="center"><a href="../League/LeagueIndex.aspx?type=0&TypeName=创业加盟" >招商加盟</a></td>
              </tr>
            </table>
           </td>
           <td style ="width :74px;" valign="bottom">
             <table style ="background-image :url('../images/dtkey_Btn_Bg_4.gif'); width :71px; height :21px; border :0;" cellpadding="0" cellspacing="0" >
              <tr>
                <td valign="bottom" align ="center"><a href="../Exhibition/ExhibitionIndex.aspx" >展会</a></td>
              </tr>
            </table>
           </td>
           <td style ="width :74px;" valign="bottom">
             <table style ="background-image :url('../images/dtkey_Btn_Bg_4.gif'); width :71px; height :21px; border :0;" cellpadding="0" cellspacing="0" >
              <tr>
                <td valign="bottom" align ="center"><a href="../bbs/index.aspx" >论坛</a></td>
              </tr>
            </table>
           </td>
           <td style ="width :16px;" valign="bottom">&nbsp;</td>      
          </tr>
         </table>
       </td>
      </tr>
     </table>     
     <!--搜索-->
     <table border="0" align="center" cellpadding="0" cellspacing="0" style ="width :100%; height :42;">
      <tr>
       <td>
           <table border="0" align="center" cellpadding="0" cellspacing="0"  style ="width :100%; height :42;">
            <tr>
             <td style ="width :14; height :42"><img src="../images/dtkey_Search_left.gif" width ="14" height ="42" alt ="" /></td>
             <td style ="background-image :url('../images/dtkey_Search_Center.gif');">
               <table border="0" align="center" cellpadding="0" cellspacing="0"  style ="width :100%; height :25;">
                 <tr>
                   <td style ="width :140;"></td>
                   <td>
                       <asp:TextBox Width ="300" ID="SearchName"  runat="server" ></asp:TextBox>
                       <input type="button" name="bSearch"  id="bSearch" class ="btnSearch2" value=""  onclick ="TradeSearch()" />
                       <asp:Label id="HotSearch" runat ="server" ></asp:Label></td>
                 </tr>
               </table> 
             </td>         
             <td style ="width :14; height :42"><img src="../images/dtkey_Search_Right.gif" width ="14" height ="42" alt ="" /></td>
             </tr> 
          </table>
       </td>
      </tr>
     </table> 
    </td>
   </tr>
 </table>
 <input type="hidden" id="SearchType" runat ="server"  />
 